package cn.skyquant.quant4j.api.http;

import cn.skyquant.quant4j.sdk.util.http.HttpUtils;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public class HttpServiceImpl implements HttpService{

    @Override
    public JSONObject get(String uristr, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String, String> headerMap) {
        return HttpUtils.get(uristr,paramMap,cookieMap,headerMap);
    }

    @Override
    public JSONArray getArray(String uristr, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String, String> headerMap) {
        return HttpUtils.getArray(uristr,paramMap,cookieMap,headerMap);
    }

    @Override
    public JSONObject post(String uri, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String, String> headerMap) {
        return HttpUtils.post(uri,paramMap,cookieMap,headerMap);
    }

    @Override
    public JSONObject put(String uri, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String, String> headerMap) {
        return HttpUtils.put(uri,paramMap,cookieMap,headerMap);
    }

    @Override
    public JSONObject delete(String uri, Map<String, String> cookieMap, Map<String, String> headerMap) {
        return HttpUtils.delete(uri,cookieMap,headerMap);
    }
}
